package hn.cch.framework.openfeign;

import feign.Feign;
import feign.codec.StringDecoder;

public class OpenFeignDemo {

    public static void main(String[] args) {
        FeignInterface feignInterface = Feign.builder()
            .decoder(new StringDecoder())
            .target(FeignInterface.class, "http://localhost:8080");

        String result = feignInterface.getString();
        System.out.println(result);
    }

}
